<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<infopost-request>
			<xsl:for-each select="FEEDAYCHECK">
				<request-head>
					<trans-id>
						<xsl:value-of select="MAIN/TRANSRNO" />
					</trans-id>
					<insu-id>
						<xsl:value-of select="MAIN/INSUID" />
					</insu-id>
					<trans-type>801</trans-type>
					<trans-date>
						<xsl:value-of select="MAIN/TRANSRDATE" />
					</trans-date>
					<trans-time>
						<xsl:value-of select="MAIN/TRANSRTIME" />
					</trans-time>
					<bank>209</bank>
					<area />
					<branch />
					<post />
					<agency-hand />
					<authorized />
				</request-head>
				<request-checkbill>
					<check-date>
						<xsl:value-of select="MAIN/TRANSRDATE" />
					</check-date>
					<client-total-count>
						<xsl:value-of select="MAIN/TOTALRECORDS" />
					</client-total-count>
					<client-total-premium>
						<xsl:value-of select="MAIN/TOTALAMT" />
					</client-total-premium>
					<client-success-total-count>
						<xsl:value-of select="MAIN/TOTALSUCCRECORDS" />
					</client-success-total-count>
					<client-success-total-premium>
						<xsl:value-of select="MAIN/TOTALSUCCAMT" />
					</client-success-total-premium>
					<check-trans-list>
						<xsl:for-each select="DAYCHECK_DETAILS/DAYCHECK_DETAIL">
							<check-trans>
								<trans-date>
									<xsl:value-of select="trans-date" />
								</trans-date>
								<trans-time>
									121212
								</trans-time>
								<trans-id>
									<xsl:value-of select="trans-id" />
								</trans-id>
								<trans-area>
									209010104
								</trans-area>
								<trans-zone>
									209010104
								</trans-zone>
								<trans-br>
									<xsl:value-of select="trans-br" />
								</trans-br>
								<apply-code>
									<xsl:value-of select="apply-code" />
								</apply-code>
								<policy-code>
									<xsl:value-of select="policy-code" />
								</policy-code>
								<premium>
									<xsl:value-of select="premium" />
								</premium>
								<trans-type>
									<xsl:value-of select="trans-type" />
								</trans-type>
								<back-flag>
									S
								</back-flag>
								<success-flag>
									<xsl:value-of select="success-flag" />
								</success-flag>
							</check-trans>
						</xsl:for-each>
					</check-trans-list>
				</request-checkbill>
			</xsl:for-each>
		</infopost-request>
	</xsl:template>
</xsl:stylesheet>
